import java.util.Scanner;

public class DisplayTime {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("Ievadi sekunžu skaitu: ");
        int sekundes = input.nextInt();
        
        int minutes = sekundes / 60;
        int remainingSeconds = sekundes % 60;
        System.out.println(sekundes + " sekundes - " + minutes + " minūtes un " + remainingSeconds + " atlikušās sekundes");
    }
}